package com.sky.mapper;/*
 *   sky-take-out
 *   com.sky.mapper
 *
 *   description:
 *   @data 2025/4/20     上午10:48
 *   @author 凉风
 */

import com.sky.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.Map;

@Mapper
public interface UserMapper {

    /**
     * 通过openid查询用户
     * @param openid
     * @return
     */
    @Select("select * from user where openid = #{openid} = ")
    User getByOpenid(String openid);

    /**
     * 插入数据
     * @param user
     */
    void insert(User user);

    Integer getByMap(Map map);
}
